package gu.sql2java.utils;

/**
 * @author guyadong
 * @since 3.24.0
 */
public class Platform {

    public static boolean isAndroid() {
        String vmName = System.getProperty("java.vm.name");
		if (vmName == null) { // default is false
			return false;
		}
        String lowerVMName = vmName.toLowerCase();
        
        return lowerVMName.contains("dalvik") //
               || lowerVMName.contains("lemur") // aliyun-vm name
        ;
    }
}
